//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat 
             History:        2023/3/29
************************************************************/
    

#include <stdio.h>

int main()
{
    int num = 0;
    scanf("%d",&num);
    int i = 0;
    for(i = 31; i >=1; i-=2)        //打印偶数位
    {
        printf("%d ",(num>>i)&1);   //每次右移俩位&1进行输出
    }
    printf("\n");
    for(i = 30; i >= 0; i-=2)       //打印奇数位
    {
        printf("%d ",(num>>i)&1);
    }
    printf("\n");
    
    return 0;
}
